﻿using PSE.Framework.Communication.Configuration.Adapters;
using System.Configuration;

namespace PSE.Framework.Communication.Configuration.Adapters.XmlHttp
{

    [ConfigurationCollection(typeof(XmlHttpInputAdapterActionConfiguration), AddItemName = "action",
CollectionType = ConfigurationElementCollectionType.BasicMap)]
    public class XmlHttpInputAdapterActionConfigurationCollection : InputAdapterActionConfigurationCollection
    {
        public new XmlHttpInputAdapterActionConfiguration this[int index]
        {
            get
            {
                return base[index] as XmlHttpInputAdapterActionConfiguration;
            }
            set
            {
                base[index] = value;
            }
        }

        public new XmlHttpInputAdapterActionConfiguration this[string key]
        {
            get
            {
                return base[key] as XmlHttpInputAdapterActionConfiguration;
            }
            set
            {
                base[key] = value;
            }
        }

        protected override ConfigurationElement CreateNewElement()
        {
            return new XmlHttpInputAdapterActionConfiguration();
        }
    }

}